package controller.listeners.knbase;

import model.KnBaseModel;
import view.KnBaseView;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;

public class CloseListener implements DisposeListener {

	private KnBaseView _view;
	private KnBaseModel _model;
	
	
	public CloseListener(KnBaseView view, KnBaseModel model) {
		this._model = model;
		this._view = view;
	}	
	
	

	@Override
	public void widgetDisposed(DisposeEvent arg0) {
		_model.close();
		_model = null;
		_view = null;
		
	}

}
